package com.sh.business.domain.bo;

import jakarta.validation.constraints.DecimalMax;
import jakarta.validation.constraints.DecimalMin;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

@Data
public class RepurchaseBo implements Serializable {

    @NotNull(message = "amount cannot be empty")
    @DecimalMin(value = "0.1", message = "amount must be greater than 0.1")
    @DecimalMax(value = "10000000", message = "amount must be less than 10000000")
    private BigDecimal amount;
}
